package com.jgp.component;

import com.jgp.sys.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
 * 项目   parent
 * 作者   loufei
 * 时间   2018/4/6
 */
@Component
public class SysInitialization implements CommandLineRunner {
    
    @Lazy
    @Autowired
    private MenuService menuService;
    
    @Override
    public void run(String... strings) {
       menuService.dealPlatformMenus();
    }
}
